namespace HD.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    public partial class News
    {
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Required(ErrorMessageResourceName = "NewsTitleRequiredMessage", ErrorMessageResourceType = typeof(Resource))]
        [MaxLength(50, ErrorMessageResourceName = "NewsTitleMaxMessage", ErrorMessageResourceType = typeof(Resource))]
        public string Title { get; set; }
        [Required(ErrorMessageResourceName = "NewsContentRequiredMessage", ErrorMessageResourceType = typeof(Resource))]
        [MaxLength(500, ErrorMessageResourceName = "NewsContentMaxMessage", ErrorMessageResourceType = typeof(Resource))]
        public string Content { get; set; }
        //public string Type { get; set; }
        //public int Level { get; set; }
        public System.DateTime PublishDate { get; set; }
        public int EmployeeId { get; set; }
        public NewsType NewsType { get; set; }
        public string TimeStamp { get; set; }
        [ForeignKey("EmployeeId")]
        public virtual Employee Employee { get; set; }
        
    }
}
